//
//  PersonInfoHeadTableViewCell.m
//  MobileOffice
//
//  Created by jjkj on 16/12/7.
//  Copyright © 2016年 liaoningjujin. All rights reserved.
//

#import "PersonInfoHeadTableViewCell.h"

@implementation PersonInfoHeadTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.headImageView=[MyControl creatImageViewWithFrame:CGRectMake(15, 5, 80, 90) imageName:@"a_2@2x"];
        [self.contentView addSubview:self.headImageView];
        
        UILabel *cqTitleLabel=[MyControl creatLabelWithFrame:CGRectMake(self.headImageView.x+self.headImageView.width+15 ,self.headImageView.y ,70, 30) text:@"出勤率"];
        cqTitleLabel.font=FONT_14;
        //self.myTitleLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:cqTitleLabel];
        
        UILabel *lineLabel1=[[UILabel alloc]initWithFrame:CGRectMake(cqTitleLabel.x, cqTitleLabel.y+cqTitleLabel.height, IPHONE_WIDTH-(self.headImageView.x+self.headImageView.width+15), 1)];
        lineLabel1.backgroundColor=BACKCOLOR_GRAY;
        [self.contentView addSubview:lineLabel1];
        
        
        UILabel *jxTitleLabel=[MyControl creatLabelWithFrame:CGRectMake(self.headImageView.x+self.headImageView.width+15 ,cqTitleLabel.y+cqTitleLabel.height ,70, 30) text:@"绩效分"];
        jxTitleLabel.font=FONT_14;
        //self.myTitleLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:jxTitleLabel];
        
        UILabel *lineLabel2=[[UILabel alloc]initWithFrame:CGRectMake(cqTitleLabel.x, jxTitleLabel.y+jxTitleLabel.height, IPHONE_WIDTH-(self.headImageView.x+self.headImageView.width+15), 1)];
        lineLabel2.backgroundColor=BACKCOLOR_GRAY;
        [self.contentView addSubview:lineLabel2];
        
        UILabel *pmTitleLabel=[MyControl creatLabelWithFrame:CGRectMake(self.headImageView.x+self.headImageView.width+15 ,jxTitleLabel.y+jxTitleLabel.height ,70, 30) text:@"绩效排名"];
        pmTitleLabel.font=FONT_14;
        //self.myTitleLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:pmTitleLabel];
        
        self.cqLabel=[MyControl creatLabelWithFrame:CGRectMake(cqTitleLabel.x+cqTitleLabel.width ,self.headImageView.y ,IPHONE_WIDTH-(cqTitleLabel.x+cqTitleLabel.width), 30) text:@""];
        self.cqLabel.font=FONT_14;
        self.cqLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.cqLabel];
        
        
        self.jxLabel=[MyControl creatLabelWithFrame:CGRectMake(self.cqLabel.x ,jxTitleLabel.y ,self.cqLabel.width, 30) text:@""];
        self.jxLabel.font=FONT_14;
        self.jxLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.jxLabel];
        
        self.pmLabel=[MyControl creatLabelWithFrame:CGRectMake(self.cqLabel.x ,pmTitleLabel.y ,self.cqLabel.width, 30) text:@""];
        self.pmLabel.font=FONT_14;
        self.pmLabel.textAlignment=NSTextAlignmentCenter;
        [self.contentView addSubview:self.pmLabel];
        
//        self.countLabel=[MyControl creatLabelWithFrame:CGRectMake(self.maxMessageLabel.x+self.maxMessageLabel.width ,0 ,60, 56) text:@""];
//        self.countLabel.font=FONT_12;
//        self.countLabel.textAlignment=NSTextAlignmentCenter;
//        [self.contentView addSubview:self.countLabel];
        
//        _lineLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 55, IPHONE_WIDTH, 1)];
//        _lineLabel.backgroundColor=BACKCOLOR_GRAY;
//        [self.contentView addSubview:_lineLabel];
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
